package com.example.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 文章表
 */
@Data
public class ArticleInfo {

    private Integer id;
    private String title;
    private String content;

    //格式化的时间处理
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime updatetime;

    private Integer uid;
    private Integer rcount;
    private Integer state;
    private Integer likes;

}
